<%-- 
    Document   : result
    Created on : 02.11.2010, 1:07:27
    Author     : Azimus
--%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form"
           prefix="form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
        <title>JSP Page</title>
        <c:import url="/WEB-INF/formating/link.jsp"/>
    </head>
    <body>
        <c:import url="/WEB-INF/formating/menu.jsp"/>
        <div id="conteiner">
            <c:import url="/WEB-INF/formating/sideMenu.jsp"/>
            <div id="main">
                <h1>efsweg</h1>
                <c:if test="${!empty users}">

                    <table border="1">

                        <tr>
                            <th>UserID</th>
                            <th>Name</th>
                            <th>Surname</th>
                            <th>Username</th>
                            <th>e-mail</th>
                            <th>Street</th>
                            <th>Street no.</th>
                            <th>City</th>
                            <th>Zip code</th>
                            <th>Type</th>
                        </tr>

                        <c:forEach items="${users}" var="user">

                            <td><c:out value="${user.userID}"/></td>

                            <td><c:out value="${user.name}"/></td>

                            <td><c:out value="${user.surname}"/></td>
                            <td><c:out value="${user.username}"/></td>
                            <td><c:out value="${user.email}"/></td>
                            <td><c:out value="${user.street}"/></td>
                            <td><c:out value="${user.streetNo}"/></td>
                            <td><c:out value="${user.city}"/></td>
                            <td><c:out value="${user.zip}"/></td>
                            <td><c:out value="${user.roles}"/></td>

                        </c:forEach>
                    </table>

                </c:if>
            </div>
        </div>
        <c:import url="/WEB-INF/formating/foot.jsp"/>
    </body>
</html>
